<div class="col-sm-9 content-right">
  <ol class="breadcrumb">
    <li><a class="route-controller" href="<?php echo site_url('home'); ?>">Home</a></li>
    <li><a class="route-controller" href="<?php echo site_url('user'); ?>">User</a></li>
    <li>Profile</li>
  </ol>
  <h3>
    User Profile
    <?php if ($user_data['user_id'] == $this->signed_user['user_id']) { ?>
      <span class="small pull-right">
        <a class="route-controller" title="Edit Profile" href="<?php echo site_url('settings/profile'); ?>">
          <i class="fa fa-edit"></i>&nbsp;Edit Profile
        </a>
        &nbsp;|&nbsp;
        <a class="route-controller" title="Change Photo" href="<?php echo site_url('settings/photo'); ?>">
          <i class="fa fa-picture-o"></i>&nbsp;Change Photo
        </a>
      </span>
    <?php } ?>
  </h3>
  <div class="row">
    <div class="col-md-12">
      <div class="well well-sm">
        <div class="row">
          <div class="col-sm-3">
            <div class="thumbnail">
              <img src="<?php echo user_image_url($user_data['user_image']); ?>" alt="User Image"/>
            </div>
          </div>
          <div class="col-sm-9">
            <?php if (!empty($user_data['user_display_name'])) { ?>
              <h3><?php echo $user_data['user_display_name']; ?></h3>
            <?php } else { ?>
              <h3>--</h3>
            <?php } ?>
            <table class="table">
              <tbody>
                <tr>
                  <td width="1"><i class="fa fa-envelope"></i></td>
                  <?php if (!empty($user_data['user_email'])) { ?>
                    <td><?php echo $user_data['user_email']; ?></td>
                  <?php } else { ?>
                    <td>--</td>
                  <?php } ?>
                </tr>
                <tr>
                  <td width="1"><i class="fa fa-phone"></i></td>
                  <?php if (!empty($user_data['user_phone_number'])) { ?>
                    <td><?php echo $user_data['user_phone_number']; ?></td>
                  <?php } else { ?>
                    <td>--</td>
                  <?php } ?>
                </tr>
                <tr>
                  <td width="1"><i class="fa fa-mobile"></i></td>
                  <?php if (!empty($user_data['user_mobile_number'])) { ?>
                    <td><?php echo $user_data['user_mobile_number']; ?></td>
                  <?php } else { ?>
                    <td>--</td>
                  <?php } ?>
                </tr>
                <tr>
                  <td width="1"><i class="fa fa-globe"></i></td>
                  <?php if (!empty($user_location['district_name'])) { ?>
                    <td><?php echo $user_location['district_name']; ?></td>
                  <?php } else { ?>
                    <td>--</td>
                  <?php } ?>
                </tr>
                <tr>
                  <td width="1"><i class="fa fa-facebook-square"></i></td>
                  <?php if (!empty($user_data['user_facebook_id'])) { ?>
                    <td><a class="text-primary" href="">Facebook</a></td>
                  <?php } else { ?>
                    <td>--</td>
                  <?php } ?>
                </tr>
                <tr>
                  <td width="1"><i class="fa fa-twitter-square"></i></td>
                  <?php if (!empty($user_data['user_twitter_id'])) { ?>
                    <td><a class="text-primary" href="">Twitter</a></td>
                  <?php } else { ?>
                    <td>--</td>
                  <?php } ?>
                </tr>
                <tr>
                  <td width="1"><i class="fa fa-google-plus-square"></i></td>
                  <?php if (!empty($user_data['user_google_id'])) { ?>
                    <td><a class="text-primary" href="">Google</a></td>
                  <?php } else { ?>
                    <td>--</td>
                  <?php } ?>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>